import { useEffect } from 'react';
import useCanvas from './useCanvas';
import config from '../config';

const STRAW = 'straw';
const Wall = 'wall';
export default function useModel() {
  const [, { drawModel }] = useCanvas('#game-container', 'Model');
  useEffect(() => {
    drawModel(STRAW, config.straw.num);
    drawModel(Wall, config.wall.num);
  }, [drawModel]);
}
